<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
        <%@page import="java.util.List"%>  
<%@page import="org.imis.domain.*"%>  
 <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
 <%List list = (List)request.getAttribute("list"); %>
 <table>
 <tr><td>id</td><td>姓名</td><td>功能</td><td>功能</td></tr>
  <%
 int PageN=Integer.parseInt(request.getParameter("pageN"));
 for(int i =0;i<list.size();i++)
 {
	
	    Teach teach =(Teach) list.get(i);
	 
	 
	 
	 
 %>
 <tr>
 <td><%=teach.getId() %></td><td><%=teach.getName() %></td><td><a href="findone.action?table=Teach&id=<%=teach.getId()%>">修改</a></td><td><a href="deletenews.action?table=Teach&id=<%=teach.getId() %>&pageN=<%=PageN%>">删除</a></td>
 </tr>
 <%} %>
 </table>
 <a href="findallteach.action?&pageN=<%=PageN-1%>">上一页</a><a href="findallteach.action?&pageN=<%=PageN+1%>">下一页</a>
</body>
</html>